<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="root"></div>
    <!-- <label for=""></label> -->
    <script src="./react.development.js"></script>
    <script src="./react-dom.development.js"></script>
    <script src="./babel.min.js"></script>
    <script type="text/babel">
      //   需求: <div class="one">
      //            <p>
      //              <span>test</span>
      //            </p>
      //         </div>
      // 注意:
      // 1. 浏览器不认识jsx语法. 所以通过babel编译成React.createElemenet执行
      // 2. 一段jsx,至少应该有一个根标签
      const div = (
        <div>
          <div className="box">
            <p>
              <span>test</span>
            </p>
          </div>
          <h1>123</h1>
        </div>
      )

      ReactDOM.render(div, document.getElementById('root'))
    </script>
  </body>
</html>
